package com.kkb.retailer.center.common.util;

import org.springframework.security.core.context.SecurityContextHolder;

public class SecurityUtils {

    /**
     * 获取当前登录用户名称
     * @return
     */
    public static String getUserName(){
        return SecurityContextHolder.getContext().getAuthentication().getCredentials().toString();
    }
}
